import request from '@/utils/request'

/**
 * TODO: 招商经理
 * @param {*} id
 * @returns
 */
export function leasingManagerDetail(id) {
  return request({
    url: '',
    method: 'GET',
    params: { id }
  })
}

/**
 * 新建招商经理
 * @param {*} data
 * @returns
 */
export function leasingManagerAdd(data) {
  return request({
    url: '/api/v1/ctmInvestmentManager',
    method: 'POST',
    data
  })
}
/**
 * 编辑招商经理
 * @param {*} data
 * @returns
 */
export function leasingManagerEdit(data) {
  return request({
    url: '/api/v1/ctmInvestmentManager',
    method: 'PUT',
    data
  })
}
/**
 * 批量停用
 * @param {*} ids
 * @returns
 */
export function leasingManagerDisable(ids) {
  return request({
    url: '/api/v1/ctmInvestmentManager/disable',
    method: 'PUT',
    data: ids
  })
}
/**
 * 批量启用
 * @param {*} ids 
 * @returns 
 */
export function leasingManagerEnable(ids) {
  return request({
    url: '/api/v1/ctmInvestmentManager/enable',
    method: 'PUT',
    data: ids
  })
}
